<?php

declare (strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Request\User\UserBank;

use App\Request\RequestAbstract;

/**
 * class
 *
 * TODO 语言包未定义
 * @author 张昊
 * @package App\Request\User\UserAddr
 */
class AddBankRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'phone'  => 'required|digits:11',
            'name'  => 'required|min:2',
            'bank_name'  => 'required|min:2',
//            'bank_account'  => 'required|digits_between:16,20', //注释，暂时保留
            'bank_account'  => 'required',
            'idcard'  => 'required'
        ];
    }
}